/*
 * Copyright 2022-2029 heshuixing(https://gitee.com/heshuixing)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mercury.ec.framework.air.core.client.impl.sunstn.dto.xsfsi;

import com.mercury.ec.framework.air.core.client.impl.sunstn.dto.SunstnCommonReqDTO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * XSFSI Request DTO
 *
 * @author hesx
 */
@Data
@NoArgsConstructor
public class SunstnXsfsiReqDTO extends SunstnCommonReqDTO {
    /**
     * 【必选】记录编码
     */
    private String pnr;

    /**
     * 【必选】获取运价时的主承运人
     */
    private String carrie;

    /**
     * 乘客类型，默认为普通成人 ADU（其他乘客类型各航
     * 空公司规定不一样，请参考客规）
     */
    private String passenger;

    /**
     * 【必选】币种
     */
    private String currency = "CNY";

    /**
     * 【必选】行程（PNR 编码中的行程信息），格式如下：航班 1|
     * 舱位 1|城市对 1|出发时间 1|到达时间 1$航班 2„
     * „例： OZ358|Q|CKGICN|2012-06-24 12:30|2012-06-24
     * 17:00$OZ357|Q|ICNCKG|2012-07-02
     * 20:35|2012-07-02 23:25
     */
    private String voyage;

    public SunstnXsfsiReqDTO(String pnr, String carrie, String passenger) {
        this.pnr = pnr;
        this.carrie = carrie;
        this.passenger = passenger;
    }

    @Override
    public String getCmd() {
        return "xsfsi";
    }
}
